<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>浮动属性</title>
		<style type="text/css">
			/*浮动顺序决定排列顺序
			   常用于定位导航栏作用*/
			#box1{
				width: 100px;
				height: 100px;
				background: red;
				float: left;
			}
			#box2{
				width: 100px;
				height: 100px;
				background: blue;
				float: left;
			}
			#box3{
				width: 100px;
				height: 100px;
				background: green;
				float: left;
			}
		</style>
	</head>
	<body>
		<div id="box1">
			我是盒子1
		</div>
		<div id="box2">
			我是盒子2
		</div>
		<div id="box3">
			我是盒子3
		</div>
	</body>
</html>
